package com.rex.saas;

import com.rex.saas.utils.MacAddressUtil;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.rex.saas.db.mapper") //mapper扫描
//@EnableDiscoveryClient //启用nacos
// 开启定时任务
@EnableScheduling
//开启线程池
@EnableAsync
@Slf4j
public class RexSaasApplication {
	public static void main(String[] args) {
		SpringApplication.run(RexSaasApplication.class, args);
		log.info("RexSaasApplication start success, Mac:{}", MacAddressUtil.getMacAddress());
	}
}